package com.mzj.saas.mservice.property.repository;

import com.mzj.saas.mservice.property.entity.ServiceUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

@Repository
public interface ServiceUserRepository extends JpaRepository<ServiceUser, Long>, JpaSpecificationExecutor<ServiceUser> {
    @Query(value = "select * from saas_service_user where mobile = ? and status = 1", nativeQuery = true)
    ServiceUser findByMobile(String mobile);

}
